<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type = "module">
        //1.import 内容 as 别名 from 文件位置
        import * as m1 from "./Demo5_2_19.js"
        console.log(m1);
        console.log(m1.school);
        console.log(m1.teach);

        // 2.解构赋值 import {内容 as 别名} from 文件位置
        import {school,teach} from "./Demo5_2_19.js"
        console.log(school);
    </script>
</body>
</html>